package cn.stronglink.asset.module.assetmanage.instock.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.Instock;
import cn.stronglink.asset.model.InstockDetail;

public interface InstockMapper {
	
	public List<InstockDetail> queryDetailList(@Param("id")Long id );

	public List<InstockDetail> queryDetailByParentId(@Param("instockId")Long instockId);
	
	public List<Instock> queryList(Pagination page,@Param("params")Map<String, Object> params);
	
	public Instock queryInstockById(@Param("id")Long id);
	
	public void remove(Long id);
	public void removeDetailByInstockId(@Param("instockId") Long instockId);
	
	public void removeDetail(Long id);

	public void insertDetail(InstockDetail detail);

	public void updateDetail(InstockDetail detail);
	
	public void update(Instock instock);

	public int insert(Instock instock);

	public List<InstockDetail> qryDetailInfoByInstockId(@Param("instockId") Long id);

	public InstockDetail getInstockDetailByRfid(@Param("rfid") String rfid);

	public List<InstockDetail> queryDetailStatus(@Param("instockId") Long instockId);

	public void updateStatus(@Param("instockId") Long id, @Param("status") Integer status);

	


}
